const express = require('express');
const router = express.Router();
const userController = require('../controllers/user');
const auth = require('../middleware/auth');

// 获取用户信息
router.get('/profile', auth, userController.getProfile);

// 更新用户信息
router.put('/profile', auth, userController.updateProfile);

// 绑定游戏UID
router.post('/game-account', auth, userController.bindGameUid);

module.exports = router; 